﻿/**
 * Created by Guochunjiang on 2018/11/25.
 */
(function () {
    cce.Lines = function (posints,mCenter) {
        cce.DisplayObject.call(this);
        this.posints = posints || null;
    };

    cce.Lines.prototype = Object.create(cce.DisplayObject.prototype);
    cce.Lines.prototype.constructor = cce.Lines;

    cce.Lines.prototype.draw = function () {
        this.context.beginPath();
        this.context.strokeStyle = mColorLines;
        for (var i = 0; i < this.posints.length; i++) {
            var x = this.posints[i].x;
            var y = this.posints[i].y;
            this.context.lineWidth = 1
            this.context.moveTo(mCenter, mCenter);
            this.context.lineTo(x, y);
        }
        this.context.closePath();

        this.context.stroke();
    };

    cce.Lines.prototype.compareTo = function (target) {

        return null;
    };

    cce.Lines.prototype.comparePointX = function (point) {

        return null;
    };

    cce.Lines.prototype.hasPoint = function (target) {

        return false;
    };

}());